//a single info
package ADBook.Advance;
public class info {
	//name
	private String name;
	//sex
	private char sex;
	//phonenum
	private String phonenum;
	//type
	private String type;
	
	info(String name,char sex,String phonenum) {
		this.name = name;
		this.sex = sex;
		this.phonenum = phonenum;
		this.type = "朋友";
	}
	public String get_name() {
		return this.name;
	}
	public String get_phonenum() {
		return this.phonenum;
	}
	@Override
	public String toString() {
		return name + sex + phonenum + type;
	}
}
